package com.vsd.repository;

import java.util.Collection;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.rest.core.annotation.RestResource;
import com.demo.domain.Notify;

/**
 * 用户User CrudRepository定义
 * 
 * @author jiekechoo
 *
 */
@RestResource(exported = false)
public interface NotifyRepository extends CrudRepository<Notify, String> {

	Collection<Notify> findAll();

	Page<Notify> findAll(Pageable p);
	
	Page<Notify> findByStateAndUserIdIsNull(Integer state,Pageable p);
	
}
